package com;

/**
 * Description: 该类为测试 前端返回异常枚举类
 *
 * @Autor: Rolin
 * datetime: 09-08-17:07
 */
public enum HttpConstants {

    ILLEGAL_ID(500,"非法id"),
    REFUSE_LOGIN(555,"拒绝登陆");


    private Integer code;
    private String msg;

   private HttpConstants(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public static void main(String[] args) {
        System.out.println("code:"+HttpConstants.ILLEGAL_ID.code+"\n"+"describe:"+HttpConstants.ILLEGAL_ID.msg);
        System.out.println("code:"+HttpConstants.REFUSE_LOGIN.code+"\n"+"describe:"+HttpConstants.REFUSE_LOGIN.msg);
    }
}
